<template>
  <div>
    <Son v-for="item in list" :key="item.id" :item="item" :msg="item" />
  </div>
</template>

<script setup lang="ts">
import { Todo } from './types/index';
import Son from './components/Son.vue';
import { ref } from 'vue';

const list = ref<Todo[]>([
  {
    id: 1,
    name: 'test'
  },
  {
    id: 2,
    name: 'test2'
  }
])
</script>

<style scoped></style>